package com.sxt.springcloud.bus;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sxt.bus.domain.Goods;
import com.sxt.bus.domain.Inport;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sxt.bus.domain.Provider;
import com.sxt.bus.vo.InportVo;
import com.sxt.springcloud.bus.fallback.InportClientFallbackService;
import com.sxt.sys.common.DataGridView;
import com.sxt.sys.common.ResultObj;
import com.sxt.sys.common.WebUtils;
import com.sxt.sys.domain.User;
import org.apache.commons.lang3.StringUtils;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2019-12-25
 */
@Component
@FeignClient(value = "SPRINGCLOUD-PROVIDER-BUS",fallbackFactory = InportClientFallbackService.class)
@RequestMapping("/p/inport")
public interface InportClientService  {

    /**
     * 查询
     */
    @RequestMapping("loadAllInport")
     DataGridView loadAllInport(@RequestBody InportVo inportVo);
    /**
     * 添加
     */
    @RequestMapping("addInport")
     ResultObj addInport(@RequestBody InportVo inportVo);
    /**
     * 修改
     */
    @RequestMapping("updateInport")
     ResultObj updateInport(@RequestBody InportVo inportVo);
    /**
     * 删除
     */
    @RequestMapping("deleteInport")
     ResultObj deleteInport(@RequestParam("id") Integer id);

}
